projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f868e34
)
(PC-do-completion): Exclude ./ and ../ from completion.
author
Richard M. Stallman
<rms@gnu.org>
Thu, 13 Aug 1998 05:05:44 +0000
(
05:05
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Thu, 13 Aug 1998 05:05:44 +0000
(
05:05
+0000)
lisp/complete.el
patch
|
blob
|
history
diff --git
a/lisp/complete.el
b/lisp/complete.el
index 4aaffa76b0ca152a84d6ce038f52c0ab406fb371..e51a9f3340211b62092f0213a6442aabe284ef8d 100644
(file)
--- a/
lisp/complete.el
+++ b/
lisp/complete.el
@@
-562,10
+562,12
@@
of `minibuffer-completion-table' and the minibuffer contents.")
"\\|")
"\\)\\'")))
- ;; Check if there are any without an ignored extension
+ ;; Check if there are any without an ignored extension.
+ ;; Also ignore `.' and `..'.
(setq p nil)
(while p2
(or (string-match PC-ignored-regexp (car p2))
+ (string-match "\\(\\`\\|/\\)[.][.]?/?\\'" (car p2))
(setq p (cons (car p2) p)))
(setq p2 (cdr p2)))